class CreateSubscriptions < ActiveRecord::Migration
  def change
    create_table :subscriptions do |t|
      t.integer :user_id
      t.string :city
      t.string :country
      t.integer :zip_code
      t.decimal :lat 
      t.decimal :long
      t.boolean :collapsed

      t.timestamps
    end
	add_index :subscriptions, :user_id
  end
end
